$(document).ready(function() {
	
	$.ajax({
		url: "Warboat",
		type: "POST",
		data: "action=refresh",
		async: true
	});
	myBoard = new Board("You");
	myBoard.init();
});


$(document).ready(function () {
	$("#ship4_1").show("fast");
	$("#ship1_1").show("fast");
	$("#ship2_1").show("fast");
	$("#ship3_1").show("fast");
});

$(document).ready(function () {
	$(".bs").draggable({
		revert: "invalid",
		snap: "#playerTable td",
		snapMode: "inner",
		snapTolerance: 10
	});


	$("#playerTable td").droppable({
		drop: handleDropEvent
	});
});

$(document).ready(function () {
	$(".bs").dblclick(turnShipOnDblClick);	
});

  

